package com.sleep.satokendemo.controller;

import com.sleep.satokendemo.entry.R;
import com.sleep.satokendemo.server.RLimitService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author GuoAo
 * @className RRateLimiterController
 * @date 2025/7/27
 * @description TODO
 */

@RestController
@RequestMapping("/limit")
public class RRateLimiterController {

    @Resource
    private RLimitService rLimitService;

    @GetMapping("/test")
    public R test(){
        rLimitService.testLimit();
        return R.success("success");
    }
}
